package com.ruoyi.logisticsmaster.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 物流订单对象 logisticsmaster
 * 
 * @author sqlstudent
 * @date 2025-06-20
 */
public class Logisticsmaster extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 物流单号 */
    private String logisticsId;

    /** 订单 */
    @Excel(name = "订单")
    private Long relatedOrderId;

    /** 用户 */
    @Excel(name = "用户")
    private String userName;

    /** 总重量(kg) */
    @Excel(name = "总重量(kg)")
    private BigDecimal orderWeight;

    /** 总距离(km) */
    @Excel(name = "总距离(km)")
    private BigDecimal distance;

    /** 物流状态 */
    @Excel(name = "物流状态")
    private String status;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createdTime;

    /** 更新时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "更新时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date updatedTime;

    public void setLogisticsId(String logisticsId) 
    {
        this.logisticsId = logisticsId;
    }

    public String getLogisticsId() 
    {
        return logisticsId;
    }

    public void setRelatedOrderId(Long relatedOrderId) 
    {
        this.relatedOrderId = relatedOrderId;
    }

    public Long getRelatedOrderId() 
    {
        return relatedOrderId;
    }

    public void setUserName(String userName)
    {
        this.userName = userName;
    }

    public String getUserName()
    {
        return userName;
    }

    public void setOrderWeight(BigDecimal orderWeight) 
    {
        this.orderWeight = orderWeight;
    }

    public BigDecimal getOrderWeight() 
    {
        return orderWeight;
    }

    public void setDistance(BigDecimal distance) 
    {
        this.distance = distance;
    }

    public BigDecimal getDistance() 
    {
        return distance;
    }

    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }

    public void setCreatedTime(Date createdTime) 
    {
        this.createdTime = createdTime;
    }

    public Date getCreatedTime() 
    {
        return createdTime;
    }

    public void setUpdatedTime(Date updatedTime) 
    {
        this.updatedTime = updatedTime;
    }

    public Date getUpdatedTime() 
    {
        return updatedTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("logisticsId", getLogisticsId())
            .append("relatedOrderId", getRelatedOrderId())
            .append("userName", getUserName())
            .append("orderWeight", getOrderWeight())
            .append("distance", getDistance())
            .append("status", getStatus())
            .append("createdTime", getCreatedTime())
            .append("updatedTime", getUpdatedTime())
            .toString();
    }
}
